Use standard icon names.
authorMatthias Clasen <mclasen@redhat.com>
Wed, 18 Jun 2008 16:22:42 +0000 (16:22 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 18 Jun 2008 16:22:42 +0000 (16:22 +0000)
2008-06-18  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilesystem.c (_gtk_file_system_volume_render_icon):
        * gtk/gtkfilechooserbutton.c (change_icon_theme):
        (model_add_bookmarks):
        (model_update_current_folder):
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_file):
        (shortcuts_reload_icons): Use standard icon names.

svn path=/trunk/; revision=20454

ChangeLog
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdefault.c
gtk/gtkfilesystem.c

index 83589e41572268a10f1ce5aad0d575f1f5b02bc1..8c24234214bdea56fc81d7c140b9f6fcb81c6d6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-06-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkfilesystem.c (_gtk_file_system_volume_render_icon):
+       * gtk/gtkfilechooserbutton.c (change_icon_theme):
+       (model_add_bookmarks):
+       (model_update_current_folder):
+       * gtk/gtkfilechooserdefault.c (shortcuts_insert_file):
+       (shortcuts_reload_icons): Use standard icon names.
+
 2008-06-18  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/Makefile.am: Add some more aliases for standard
index 6bf13d876ee1598f47530581e6dc8fe819201133..e9178eeaeb447118c03371f6616d9a0bf86dea36 100644 (file)
@@ -1343,7 +1343,7 @@ change_icon_theme (GtkFileChooserButton *button)
                 * If we switch to a better bookmarks file format (XBEL), we
                 * should use mime info to get a better icon.
                 */
-               pixbuf = gtk_icon_theme_load_icon (theme, "gnome-fs-share",
+               pixbuf = gtk_icon_theme_load_icon (theme, "folder-remote",
                                                   priv->icon_size, 0, NULL);
            }
          else
@@ -1879,7 +1879,7 @@ model_add_bookmarks (GtkFileChooserButton *button,
            label = _gtk_file_chooser_label_for_file (file);
 
          icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (button)));
-         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
+         pixbuf = gtk_icon_theme_load_icon (icon_theme, "folder-remote", 
                                             button->priv->icon_size, 0, NULL);
 
          gtk_list_store_insert (store, &iter, pos);
@@ -1984,10 +1984,10 @@ model_update_current_folder (GtkFileChooserButton *button,
       icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (button)));
 
       if (g_file_is_native (file))
-         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-directory", 
+         pixbuf = gtk_icon_theme_load_icon (icon_theme, "folder", 
                                             button->priv->icon_size, 0, NULL);
       else
-         pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
+         pixbuf = gtk_icon_theme_load_icon (icon_theme, "folder-remote", 
                                             button->priv->icon_size, 0, NULL);
 
       gtk_list_store_set (store, &iter,
@@ -2368,7 +2368,7 @@ update_label_and_image (GtkFileChooserButton *button)
          label_text = _gtk_file_system_get_bookmark_label (button->priv->fs, file);
          
          pixbuf = gtk_icon_theme_load_icon (get_icon_theme (GTK_WIDGET (priv->image)), 
-                                            "gnome-fs-regular",
+                                            "text-x-generic",
                                             priv->icon_size, 0, NULL);
          
          gtk_image_set_from_pixbuf (GTK_IMAGE (priv->image), pixbuf);
index 572e6f8b563f90b070ef729dd2374674c647762f..a911c95086da90d652d22cf18f1fd7e2261f6b9e 100644 (file)
@@ -1378,7 +1378,7 @@ shortcuts_reload_icons (GtkFileChooserDefault *impl)
                   * should use mime info to get a better icon.
                   */
                  icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl)));
-                 pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
+                 pixbuf = gtk_icon_theme_load_icon (icon_theme, "folder-remote", 
                                                     impl->icon_size, 0, NULL);
                }
             }
@@ -1771,7 +1771,7 @@ shortcuts_insert_file (GtkFileChooserDefault *impl,
            * should use mime info to get a better icon.
            */
           icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl)));
-          pixbuf = gtk_icon_theme_load_icon (icon_theme, "gnome-fs-share", 
+          pixbuf = gtk_icon_theme_load_icon (icon_theme, "folder-remote", 
                                             impl->icon_size, 0, NULL);
         }
     }
index 8ba538e8d9178844d6685f951660c367e8fa1598..8ec0e67e283610090780734ec8647c1095fc15aa 100644 (file)
@@ -1664,17 +1664,11 @@ _gtk_file_system_volume_render_icon (GtkFileSystemVolume  *volume,
 {
   GIcon *icon = NULL;
   GdkPixbuf *pixbuf;
-  const char *harddisk_icons[] = { 
-    "drive-harddisk", 
-    "gnome-dev-harddisk", 
-    "gtk-harddisk",
-    NULL
-  };
 
   DEBUG ("volume_get_icon_name");
 
   if (IS_ROOT_VOLUME (volume))
-    icon = g_themed_icon_new_from_names ((char **) harddisk_icons, -1);
+    icon = g_themed_icon_new ("drive-harddisk");
   else if (G_IS_DRIVE (volume))
     icon = g_drive_get_icon (G_DRIVE (volume));
   else if (G_IS_VOLUME (volume))